<?php Util::tsRegisterAssetJs('index.js');?>

    
    <div class="row-fluid">
        
       <?php //  $escuela= Yii::app()->user->getField('escuela') ?>
    
<div class="panel panel-primary" >
    <div class="panel-heading" id=<?php echo $escuela; ?>>
      <h3 class="panel-title" style="text-align: center">EVENTOS ACADEMICOS</h3>
  </div>
  <div class="panel-body">
    <div class="control-group">
        <?php
        
        $this->widget('application.extensions.fullcalendar.FullcalendarGraphWidget', array(
            'id' => 'calendar',
            'options' => array(
                'editable' => false,
                'monthNames' => Util::obtenerMeses(),
                'monthNamesShort' => Util::obtenerMesesCortos(),
                'dayNames' => Util::obtenerDias(),
                'buttonText' => Util::obtenerBotonesCalendario(),
                'dayNamesShort' => Util::obtenerDiasCortos(),
                'columnFormat' => Util::obtenerColumnasCalendario(),
                'titleFormat' => Util::obtenerTitulosCalendario(),
                'eventColor'=> Util::colorCalendario($escuela),
                'eventSources' => array(CController::createUrl('/eventos/evento/calendar')),
//                'dayClick' => "js:function(date, allDay, jsEvent, view){
//                        AjaxModalCreateNewEvento(date);
//                    }",
                'eventClick' => 'js:function(event, eventElement, view){
                        viewModal(event.id);
                }',
                'header' => array(
                    'left' => 'prev,next today',
                    'center' => 'title',
                    'right' => 'month,basicWeek,basicDay'
                ),
            ),
            'htmlOptions' => array(
                'class' => 'has-toolbar'
            ),
        ));
        ?>
    </div>
  </div>
</div>
  
    
</div>

  
   